C1.WPF Namespace > Extensions Class > MakeRelative Method : MakeRelative(Popup,FrameworkElement,Func<List<AnchorMatching>>,Func<Point>,Func<Point>) Method |
'Declaration
<System.Runtime.CompilerServices.ExtensionAttribute()> Public Overloads Shared Sub MakeRelative( _ ByVal popup As System.Windows.Controls.Primitives.Popup, _ ByVal relativeElement As System.Windows.FrameworkElement, _ ByVal getLocations As System.Func(Of List(Of AnchorMatching)), _ ByVal getPosition As System.Func(Of Point), _ ByVal getReferencePosition As System.Func(Of Point) _ )
'Usage
Dim popup As System.Windows.Controls.Primitives.Popup Dim relativeElement As System.Windows.FrameworkElement Dim getLocations As System.Func(Of List(Of AnchorMatching)) Dim getPosition As System.Func(Of Point) Dim getReferencePosition As System.Func(Of Point) Extensions.MakeRelative(popup, relativeElement, getLocations, getPosition, getReferencePosition)
[System.Runtime.CompilerServices.Extension()] public static void MakeRelative( System.Windows.Controls.Primitives.Popup popup, System.Windows.FrameworkElement relativeElement, System.Func<List<AnchorMatching>> getLocations, System.Func<Point> getPosition, System.Func<Point> getReferencePosition )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2